﻿using System;
using System.Collections.Generic;

namespace FamilyBook.Core.Entities
{
    public class Account : IEntityStatus, IEntityVersionable
    {
        public int AccountId { get; set; }
        public string Number { get; set; }
        public string DisplayedName { get; set; }
        public string Description { get; set; }
        public virtual Counterparty Custodian { get; set; }
        public virtual Currency Currency { get; set; }
        public virtual ICollection<Transaction> OutgoingTransactions { get; set; }
        public virtual ICollection<Transaction> IncomingTransactions { get; set; }
        public bool IsDefault { get; set; }

        #region IEntityStatus
        public EntityStatus Status { get; set; }
        #endregion

        #region IEntityVersionable
        public int Version { get; set; }
        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }
        #endregion
    }
}
